#include "StdAfx.h"
#include "RichEditTabView.h"

HWND CRichEditTabView::Create(HWND hParent, HINSTANCE hInstance)
{
	m_richEdit = shared_ptr<CRichEdit>(new CRichEdit(hParent, hInstance, IsReadOnly()));
	HWND hWnd = m_richEdit->GetHWnd();
	return hWnd;
}

void CRichEditTabView::SetSize(RECT r)
{
	CTabView::SetSize(r);
	m_richEdit->SetSize(r);
}

void CRichEditTabView::Show()
{
	CTabView::Show();
	InvalidateRect(m_richEdit->GetHWnd(), NULL, TRUE);
}
